home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
stdlib1.exe
/
lha
/
PUTS.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-06-20
|
446b
|
25 lines
stdlib segment para public 'slcode'
assume cs:stdlib
extrn sl_putc:far
;
; Puts prints the string that ES:DI points at to the std output.
;
;
public sl_puts
sl_Puts proc far
push di
push ax
jmp short PStart
;
PutsLp: call sl_Putc
PStart: mov al, es:[di]
inc di
cmp al, 0
jnz PutsLp
pop ax
pop di
ret
sl_Puts endp
stdlib ends
end